package cn.iocoder.yudao.module.promotion.newcustomer.service.app;

import cn.iocoder.yudao.framework.business.basic.service.impl.AbstractService;
import cn.iocoder.yudao.module.api.promotion.newcustomer.vo.NewCustomerConfigVO;
import cn.iocoder.yudao.module.promotion.newcustomer.convert.NewcustomerConfigConvert;
import cn.iocoder.yudao.module.promotion.newcustomer.dao.NewcustomerConfigMapper;
import cn.iocoder.yudao.module.promotion.newcustomer.pojo.po.NewcustomerConfig;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/07/11
 */
@Service
public class AppNewcustomerConfigService extends AbstractService<NewcustomerConfig, NewCustomerConfigVO> {
    @Resource
    private NewcustomerConfigMapper newcustomerConfigMapper;

    @Override
    public NewcustomerConfigMapper getInjectedMapper() {
        return newcustomerConfigMapper;
    }

    @Override
    public NewCustomerConfigVO convertToViewObject(NewcustomerConfig entity) {
        return NewcustomerConfigConvert.INSTANCE.toViewObject(entity);
    }

}
